package net.huashitong.oversee.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import net.huashitong.oversee.dao.TaskMethonDao;
import net.huashitong.oversee.entity.TaskMethon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskMethonService extends StringPKService<TaskMethon> {
    @Autowired
    private TaskMethonDao dao;

    @Override
    protected BaseDao<TaskMethon, String> getDao() {
        return dao;
    }

    /**
     * 所有督查方法
     * @return
     */
    public List<TaskMethon> getAllMethon()
    {
        return dao.getAllMethon();
    }

    /**
     * 根据编码那分值
     * @param methon
     * @return
     */

    public TaskMethon getMethon(String methon)
    {
        return dao.getMethon(methon);
    }
}
